package com.jiliang.jiliangserver.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jiliang.jiliangserver.model.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 电池
 */
@Data
public class Battery extends BaseEntity {

    private Long id;

    //编号
    private String batteryRef;

    //电池名称
    private String batteryName;

    //电池类型
    private String batteryType;

    //电池状态 1闲置 2使用中 3作废
    private String batteryStatus;

    //1正常 2异常
    private String exceptionFlag;

    //品牌
    private String batteryBrand;

    //品牌id
    private Long brandId;

    //备注
    private String remark;

    //使用开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date useTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String createBy;

    private String updateBy;


}
